package co.edu.unal.geditor.controller.action.edit.color;

import java.awt.Color;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Icon;
import javax.swing.JColorChooser;

public abstract class ChangeColorAction extends AbstractAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public ChangeColorAction() {
		
	}

	public ChangeColorAction(String name) {
		super(name);
	}

	public ChangeColorAction(String name, Icon icon) {
		super(name, icon);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
			getColor();
			
			
	}
	
	protected void getColor (){
		
		color = JColorChooser.showDialog(null, "Color Chooser", color);
		
	}
	protected Color color=new Color(1);
}
